import {addData, deleteById, listData, pageData, updateById} from "@/services/base-request";
import {API, DynamicObject, PageParams} from "@/services/typings";

export const pageSysFile = (params: PageParams, options?: DynamicObject) => {
  return pageData('/file', params, options)
}

export const listSysFile = (params: PageParams, options?: DynamicObject) => {
  return listData('/file', params, options)
}
export const addSysFile = (data: API.ISysFile, options?: DynamicObject) => {
  return addData('/file', data, options)
}

export const updateSysFile = (data: API.ISysFile, options?: DynamicObject) => {
  return updateById('/file', data, options)
}

export const deleteSysFile = (id: string | number, options?: DynamicObject) => {
  return deleteById('/file', id, options)
}
